package com.rico.kok.mapper;

import com.rico.kok.entity.Follow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FollowMapper {
    //关注用户
    int followUser(@Param("userId") int userId,@Param("followId") int followId);
    //获取关注用户id
    List<Integer> selectAllFollowsId(int userId);
    //获取关注用户详细信息
    List<Follow> selectAllFollows(int userId);
    //取关用户
    int unFollowUser(@Param("userId") int userId,@Param("followId") int followId);
}
